Micron Document
welo git mirrors

Node / public / reticulum / commits / 4c93f6c

Commit 4c93f6c7f4a783845a00bd2e06920fa7c4d32f52


Parents : 35c7a89
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Date : 2026-05-13T23:41:07+02:00

Added local URL resolution to repo frontpage markdown readme renderer

Changes

1 files changed, 5 insertions(+), 5 deletions(-)


Diff

diff --git a/RNS/Utilities/rngit/pages.py b/RNS/Utilities/rngit/pages.py
index a9c0de9f1..918c9ce6f 100644
--- a/RNS/Utilities/rngit/pages.py
+++ b/RNS/Utilities/rngit/pages.py
@@ -456,20 +456,20 @@ class NomadNetworkNode():
content_parts.append(self.m_divider())
if readme_is_markdown:
- converted = self.mdc.format_block(readme_content)
+ url_scope = f":/page/blob.mu`g={group_name}|r={repo_name}|ref={ref}|path="
+ mdc = MarkdownToMicron(max_width=self.MAX_RENDER_WIDTH, syntax_highlighter=self.highlighter, url_scope=url_scope)
+ converted = mdc.format_block(readme_content)
content_parts.append(converted)
else: content_parts.append(f"\n{readme_content}\n")
content_parts.append("\n")
- content_parts.append(self.m_divider())
else:
content_parts.append(self.m_divider())
content_parts.append("\n")
content_parts.append(self.m_italic("No README file found in this repository."))
-
- content_parts.append("\n")
+ content_parts.append("\n")
self.owner.view_succeeded(group_name, repo_name, remote_identity)
page_content = "".join(content_parts)
@@ -1140,7 +1140,7 @@ class NomadNetworkNode():
content_parts.append("\n")
content_parts.append(self.render_combined_chart(stats["views"]["daily"], stats["fetches"]["daily"], stats["pushes"]["daily"], stats["timeline_labels"]))
- else: content_parts.append(self.m_italic("\nNo activity recorded for this repository in the selected time period.\n\n"))
+ else: content_parts.append(self.m_italic("\nNo development activity recorded for this repository in the selected time period.\n\n"))
page_content = "".join(content_parts)
nav_content = "".join(nav_parts)

Served by rngit 1.4.2 - Generated in 0.05s